package com.halfsword.creativecraft.entity;

import com.halfsword.creativecraft.CreativeCraft;
import com.halfsword.creativecraft.entity.custom.NothingEntity;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.MobCategory;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class Entities {
    public static final DeferredRegister<EntityType<?>> ENTITIES_TYPES =
            DeferredRegister.create(ForgeRegistries.ENTITY_TYPES, CreativeCraft.MOD_ID);
    public static final RegistryObject<EntityType<NothingEntity>> NOTHING =
            ENTITIES_TYPES.register("nothing",()-> EntityType.Builder.of(NothingEntity::new, MobCategory.MONSTER).sized(0.9f,0.9f).build("nothing"));
    public static void register(IEventBus eventBus) {
        ENTITIES_TYPES.register(eventBus);
    }
}
